package com.ai.service.made;

import com.ai.common.CommonResponse;
import com.ai.entity.file.Audio;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author：xiaosheng
 * @Date：2024/5/15 10:18
 */
@Service
public interface FileService extends IService<Audio> {


    CommonResponse upload(MultipartFile file);

    Audio oneById(Integer id);

    CommonResponse modifyInfo(Audio audio);

    CommonResponse delete(Audio audio);

    CommonResponse uploadToServer(Integer fileId, Integer serverId);
}
